package com.github.lyd.admin.provider.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.github.lyd.admin.provider.dao.WxAppSessionsDao;
import com.github.lyd.admin.provider.entity.WxAppSessionsEntity;
import com.github.lyd.admin.provider.service.WxAppSessionsService;
import com.github.lyd.admin.provider.utils.PageUtils;
import com.github.lyd.admin.provider.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("wxAppSessionsService")
public class WxAppSessionsServiceImpl extends ServiceImpl<WxAppSessionsDao, WxAppSessionsEntity> implements WxAppSessionsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<WxAppSessionsEntity> page = this.selectPage(
                new Query<WxAppSessionsEntity>(params).getPage(),
                new EntityWrapper<WxAppSessionsEntity>()
        );

        return new PageUtils(page);
    }

}
